local skynet = require "skynet"
local sprotoparser = require "sprotoparser"
local sprotoloader = require "sprotoloader"

skynet.start(function()
	sprotoloader.register("protos/socket.sproto", 0);
	sprotoloader.register("protos/login.sproto", 1);
	sprotoloader.register("protos/game.sproto", 2);
	-- don't call skynet.exit() , because sproto.core may unload and the global slot become invalid
end)
